package com.library.model.serviceimple;

import java.util.List;

import com.library.model.dao.UserDAO;
import com.library.model.dto.user.UserDTO;
import com.library.model.service.UserService;

public class UserServiceImple implements UserService{
	private UserDAO userdao;
	
	public void setUserdao(UserDAO userdao) {
		this.userdao = userdao;
	}

	@Override
	public List<UserDTO> getAllUser() {
		return userdao.getAllUser();
	}

	@Override
	public UserDTO getUser(String id) {
		return userdao.getUser(id);
	}

	@Override
	public void updateUser(UserDTO dto) {
		userdao.updateUser(dto);
	}

	@Override
	public void deleteUser(String id) {
		userdao.deleteUser(id);
	}
	
}
